let fs = require('fs')
window.onload = () => {
  let btn = document.getElementById('btn')
  let app = document.getElementById('app')

  btn.onclick = () => {
    fs.readFile('/1.txt', (err, data) => {
      console.log(data)
      app.innerHTML = data;
    })
  }
}